import LayoutMain from "@/components/layout";

export default [
    {
        path: "/admin",
        name: "admin",
        meta: {
            title: "配置管理",
            access: "配置管理",
            showMenu: true,
            icon: "el-icon-admin-role",
        },
        component: LayoutMain,
        children: [
            {
                path: "role",
                name: "admin_role",
                meta: {
                    title: "角色列表",
                    access: "角色列表",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-admin-roles",
                },
                component: () => import("@/views/admin/role"),
            },
            {
                path: "list",
                name: "admin_list",
                meta: {
                    title: "账户列表",
                    access: "账户列表",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-admin",
                },
                component: () => import("@/views/admin/list"),
            },
        ],
    },
    {
        path: "/premium",
        name: "premium",
        meta: {
            title: "保费统计",
            access: "保费统计",
            showMenu: true,
            icon: "el-icon-order",
        },
        component: LayoutMain,
        children: [
            {
                path: "salesman",
                name: "premium_salesman",
                meta: {
                    title: "业务员保费统计",
                    access: "业务员保费统计",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-income",
                },
                component: () => import("@/views/premium/salesman"),
            },
            {
                path: "customer",
                name: "premium_customer",
                meta: {
                    title: "客户保费统计",
                    access: "客户保费统计",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-md-menu",
                },
                component: () => import("@/views/premium/customer"),
            },
        ],
    },
    {
        path: "/performance",
        name: "performance",
        meta: {
            title: "绩效管理",
            access: "绩效管理",
            showMenu: true,
            icon: "el-icon-order",
        },
        component: LayoutMain,
        children: [
            {
                path: "salesman",
                name: "performance_salesman",
                meta: {
                    title: "业务员绩效明细",
                    access: "业务员绩效明细",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-md-menu",
                },
                component: () => import("@/views/performance/salesman"),
            },
            {
                path: "leader",
                name: "performance_leader",
                meta: {
                    title: "业务组长绩效明细",
                    access: "业务组长绩效明细",
                    keepalive: false,
                    showMenu: true,
                    icon: "el-icon-md-menu",
                },
                component: () => import("@/views/performance/leader"),
            },
        ],
    },
];
